# _*_coding:utf-8_*_
"""
   ATS 1.0(Automated Test Server, Version 1.0) Pass Global data Dict to the called module,
   Developed by Ivy.Li 2013.03.27.
   (C)Copyright 2013 Hech. All rights reserved
"""


def set_globals(obj, name, globals):
    """
    Very important when pass module variable to the called modules
    """
    # reload(obj)
    for item in globals.keys():
        if item[0:2] == "__" and item[-2:] == "__": continue
        setattr(obj, item, globals[item])
